package qq.base;
import org.junit.After;
import org.junit.Before;

import qq.page.LoginPage;
import qq.util.SeleniumUtil;
public class SeleniumTestAbstract {

@Before
public void setUP(){
	System.out.println("BEGIN!!");
	SeleniumUtil.getURL(LoginPage.LP_LOGIN_URL);
	SeleniumUtil.waitForElements(LoginPage.LP_WAIT_ELEMENTS);
	SeleniumUtil.findElement(LoginPage.LP_USERNAME).sendKeys("398733146");
	SeleniumUtil.findElement(LoginPage.LP_PASSWORD).sendKeys("wang1987YANG");
	SeleniumUtil.findElement(LoginPage.LP_LOGIN).click();
	
	
	
}

@After
public void tearDown(){
	System.out.println("SHUT DOWN!");
	SeleniumUtil.quit();

}

}
